package com.techthinker.dreamBuilder.Activitites;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.techthinker.dreamBuilder.Database.DatabaseHelper;
import com.techthinker.dreamBuilder.Define.Constant;

public class DreamBuilderActivity extends Activity {
	/**
	 * start point for the whole application.
	 * 
	 * @author Techthinker
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// initiate the database
		DatabaseHelper dbHelper = new DatabaseHelper(this, Constant.DB_NAME);
		dbHelper.getWritableDatabase();
		dbHelper.close();

		// setContentView(R.layout.start);
		Intent toRootView = new Intent();
		toRootView.setClass(DreamBuilderActivity.this, RootViewActivity.class);
		startActivity(toRootView);
		DreamBuilderActivity.this.finish();

	}
}